package copy;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;

public class PrintWBufferedR {
	
	public static BufferedReader getBR(InputStream in) throws IOException {
		InputStreamReader isr=new InputStreamReader(in,"utf-8");
		BufferedReader br=new BufferedReader(isr);
		return br;	
	}
	public static PrintWriter getPW(OutputStream out) throws IOException {
		OutputStreamWriter osw=new OutputStreamWriter(out,"utf-8");
		BufferedWriter bw = new BufferedWriter(osw);
		PrintWriter pw=new PrintWriter(bw,true);
		return pw;
	}

}
